package com.netbetter.langzheng.plugin.fileManager.dto;

import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONString;
import com.netbetter.langzheng.plugin.fileManager.model.FileModel;

/**
 * @author 嘉陵江里捉鱼 email:tang7259@163.com
 *@version 1.0
 *@time 2008-9-16 下午09:19:12
 */
public class PasteCommandDTO extends CommandDTO {

    private FileModel oriFileModel;
    private FileModel aimFileModel;

    @Override
    public String toString() {
        JSONObject jsonObject = new JSONObject();
        JSONString jsonType = new JSONString(type.getValue());
        jsonObject.put("type", jsonType);
        jsonObject.put("oriFileModel", oriFileModel.getJSONObject());
        jsonObject.put("aimFileModel", aimFileModel.getJSONObject());
        return jsonObject.toString();
    }

    public FileModel getAimFileModel() {
        return aimFileModel;
    }

    public FileModel getOriFileModel() {
        return oriFileModel;
    }

    public void setOriFileModel(FileModel oriFileModel) {
        this.oriFileModel = oriFileModel;
    }

    public void setAimFileModel(FileModel aimFileModel) {
        this.aimFileModel = aimFileModel;
    }

}
